home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / dbpictxt.dxr / 00059_File io help.txt < prev    next >
Encoding:
Text File  |  2000-01-27  |  1.9 KB  |  30 lines

  1. File io help
  2.  
  3. -- "xtra fileio -- CH May96
  4. new object me -- create a new child instance
  5. -- FILEIO --
  6. fileName object me -- return fileName string of the open file
  7. status object me -- return the error code of the last method called
  8. error object me, int error -- return the error string of the error
  9. setFilterMask me, string mask -- set the filter mask for dialogs
  10. openFile object me, string fileName, int mode -- opens named file. valid modes: 0=r/w 1=r 2=w
  11. closeFile object me -- close the file
  12. displayOpen object me -- displays an open dialog and returns the selected fileName to lingo
  13. displaySave object me, string title, string defaultFileName -- displays save dialog and returns selected fileName to lingo
  14. createFile object me, string fileName -- creates a new file called fileName
  15. setPosition object me, int position -- set the file position
  16. getPosition object me -- get the file position
  17. getLength object me -- get the length of the open file
  18. writeChar object me, string theChar -- write a single character (by ASCII code) to the file
  19. writeString object me, string theString -- write a null-terminated string to the file
  20. readChar object me -- read the next character of the file and return it as an ASCII code value
  21. readLine object me -- read the next line of the file (including the next RETURN) and return as a string
  22. readFile object me -- read from current position to EOF and return as a string
  23. readWord object me -- read the next word of the file and return it as a string
  24. readToken object me, string skip, string break -- read the next token and return it as a string
  25. getFinderInfo object me -- get the finder info for the open file (Mac Only)
  26. setFinderInfo object me, string attributes -- set the finder info for the open file (Mac Only)
  27. delete object me -- deletes the open file
  28. + version xtraRef -- display fileIO version and build information in the message window
  29. * getOSDirectory -- returns the full path to the Mac System Folder or Windows Directory
  30. "